<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content ="vi" />
<title><?php echo $title_page; ?></title>
<meta name="description" content="<?php echo $descriptions; ?>" />
<meta name="keywords" content="<?php echo $keywords; ?>" />
<meta name="title" content="<?php echo $title_page; ?>" />
<meta http-equiv="Expires" content="0" />
<link href="<?php echo $FullUrl; ?>/css/styles.css" rel="stylesheet" type="text/css" />
<? $smallIcon = Info::getByName('icon tren tab browser'); ?>
<?=$smallIcon?$smallIcon['img']?'<link rel="shortcut icon" href="'.$FullUrl.'/'.$smallIcon['img'].'" type="image/x-icon" />':'':'';?>
<script type="text/javascript" src="<?php echo $FullUrl; ?>/js/external.php"></script>
<?php
global $do, $tpl;
if (file_exists(TPL_DIR.$do."/head.php")){
		include(TPL_DIR.$do."/head.php");
}

?>
    
 
</head>
<body id="indexBody">

<!-- ========== IMAGE BORDER TOP ========== -->

<div id="main-width"> 
  
  <!-- ====================================== --> 
  
  <!-- ========== HEADER ========== -->
  
  <div id="header">
    <div class="top">
      <div class="logo"> 
        <!-- ========== LOGO ========== --> 
        <a href="#"><img src="<?=$FullUrl?>/images/logo.png" alt="" height="120" width="305"></a> 
        <!-- ========================== --> 
      </div>
      <div class="currencies-form"> 
      <a href="<?=$FullUrl?>/bang-gia.html">Bảng Giá</a>
      <a href="<?=$FullUrl?>/tuyen-dung.html">Tuyển Dụng</a>
        <!-- ========== CURRENCIES ========= -->
        <!--<form name="currencies" action="http://osc.template-help.com/zencart_27053/index.php?main_page=index" method="get">
          <div> Currencies:
            <select name="currency" class="select" onchange="this.form.submit();">
              <option value="USD" selected="selected">US Dollar</option>
              <option value="EUR">Euro</option>
              <option value="GBP">GB Pound</option>
              <option value="CAD">Canadian Dollar</option>
              <option value="AUD">Australian Dollar</option>
            </select>
            <input name="main_page" value="index" type="hidden">
            <input name="zenid" value="22db0579c49efec9051aa2251f19eece" type="hidden">
          </div>
        </form>-->
        <!-- ====================================== --> 
      </div>
      <div class="lang"> 
        <!-- ========== LANGUAGES ========== --> 
        Languages: <a href="#"><img src="<?=$FullUrl?>/images/icon.gif" alt="English" title=" English " style="vertical-align: middle;" height="15" width="24"></a> <!-- =============================== --> 
      </div>
      <div class="clear"></div>
    </div>
    <?php Template::UserControl('Member'); 	?>
    
    <?php Template::UserControl('ShareModule'); ?>
    <!-- ========== MENU ========== -->
    <?php Template::UserControl('Categories'); ?>
    <!-- ========================== -->
    <div class="row">
      <div class="right-bg">
        <?php Template::UserControl('Search'); ?>
        <?php Template::UserControl('Cart'); ?>
      </div>
    </div>
    <?
    	if($do == 'main')
		{
	?>
    <?php Template::UserControl('Slider'); ?>
    <?php Template::UserControl('Banners'); ?>
    <?
		}
	?>
  </div>
  
  <!-- ========== CATEGORIES TABS ========= --> 
  <!-- ==================================== --> 
  
  <!-- ============================ -->
  
  <div id="content">
    <table id="contentMainWrapper" width="100%" border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td id="column-left" style="width: 185px;"><!--// bof: categories //-->
				<?php Template::UserControl('CategoriesLeft'); ?>
				<?php Template::UserControl('DoiTac'); ?>            
            	<?php Template::UserControl('SupportOnline'); ?>
             	<?php Template::UserControl('Statics'); ?>
                
            <!--// eof: categories //--></td>
          <td id="column-center" valign="top"><div class="main-content">
              <div class="left-top">
                <div class="right-top">
                  <div class="left-bot">
                    <div class="right-bot">
                      <div class="indent"> 
                        
                        <!--content_center--> 
                        
                        <!-- bof breadcrumb --> 
                        <!-- eof breadcrumb --> 
                        
                        <!-- bof upload alerts --> 
                        <!-- eof upload alerts -->
                        <?
							$filename = './kam/modules/'.$do.'/site/'.$do.'.php';
							//echo $filename;
							
							if(file_exists($filename)) 
								include($filename); 
							else
								print('This page is not available');
								
							//echo 'do: '.$do;
							//echo 'tpl: '.$tpl;	
							//echo 'act: '.$act;
						?>
						<?
                            $filename = './kam/modules/'.$do.'/site/'.$tpl.'.php';
                            //echo $filename;
                            
                            if(file_exists($filename)) 
                                include($filename); 
                            else
                                print('This page is not available');
                        ?>
                        
                        <div class="clear"></div>
                        
                        <!--eof content_center--> 
                        
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div></td>
        </tr>
      </tbody>
    </table>
    
    <?php Template::UserControl('LeftRightBanner'); ?>
  </div>
  
  <!-- BOF- BANNER #4 display --> 
  <!-- EOF- BANNER #4 display --> 
  
  <!-- ========== FOOTER ========== -->
  
  <div id="footer">
    <div class="menu">
      <div class="left-top">
        <div class="right-top">
          <div class="right-bot">
            <div class="left-bot">
				<?php Template::UserControl('CategoriesBot'); ?>      			
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php Template::UserControl('CopyRight'); ?>      			
  </div>
  
  <!-- BOF- BANNER #5 display --> 
  <!-- EOF- BANNER #5 display --> 
  
  <!-- ============================ --> 
  
  <!--bof- parse time display --> 
  <!--eof- parse time display --> 
  
  <!-- BOF- BANNER #6 display --> 
  <!-- EOF- BANNER #6 display --> 
  
  <!-- ========== IMAGE BORDER BOTTOM ========== --> 
  
</div>

<!-- ========================================= -->

</body>
</html>
